/** 
 * @Title: UserDAO.java 
 * @Package com.prs.um.usermanager.dao 
 * @Description: TODO 
 * @author flybonew@163.com 
 * @date 2013-1-7 上午10:51:30 
 * @version V1.0 
 */  
package com.prs.um.usermanager.dao;

import java.util.List;
import java.util.Map;

import com.prs.um.usermanager.dto.User;

/** 
 * @ClassName: UserDAO 
 * @Description: TODO(这里用一句话描述这个类的作用) 
 * @author flybonew@163.com
 * @date 2013-1-7 上午10:51:30 
 * 
 */
public interface UserDAO {
public User addUser(User user);
	
	public void updateUser(User user);
	
	public void deleteUser(User user);
	
	public User seleteUserById(String userId);
	
	public User seleteUserByLoginId(String loginId);
	
	public List<User> selectUserByDeptId(String deptId,Integer state);
	
	public List<User> selectUserByDutyId(String dutyId,Integer state);
	
	//public List<User> selectUserByDeptName(String deptName,Integer state);
	
	//public List<User> selectUserByDutyName(String dutyName,Integer state);
	
	public List<User> selectUserByCondition(Map<String, Object> map);
}
